package com.imooc.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
/**
 * @program: sell
 * @description: 订单表单验证
 * @author: LT
 * @create: 2020-07-21 22:46
 **/

@Data
public class OrderForm {

    @NotEmpty(message = "姓名必填")
    private String name;

    @NotEmpty(message = "手机号必填")
    private String phone;

    @NotEmpty(message = "地址必填")
    private String address;
    /**
     * 买家微信
     */
    @NotEmpty(message = "openid必填")
    private String openid;
    /**
     * 购物车
     */
    @NotEmpty(message = "购物车不能为空")
    private String items;
}